package com.cicigodd.brick.plug.system.login.request;

import com.cicigodd.brick.plug.common.request.BaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author cicigodd
 * @date 2022/09/23 08:42:00
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class LoginRequest extends BaseRequest {

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    @ApiModelProperty("账号")
    private String account;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    /**
     * 记住我，不传就是false
     */
    @ApiModelProperty("记住我，不传就是false")
    private Boolean rememberMe = false;
}
